package com.zhentao.model.pay.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @TableName ap_user_financial_details
 */
@TableName(value ="ap_user_financial_details")
@Data
public class ApUserFinancialDetails implements Serializable {
    /**
     * 用户资金明细表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 金额
     */
    @TableField(value = "money")
    private double money;

    /**
     * 类型（0收入 1支出）
     */
    @TableField(value = "d_type")
    private Integer dType;

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 审核状态（0未审核/1审核通过/2审核失败）
     */
    @TableField(value = "audit_status")
    private Integer auditStatus;

    /**
     * 订单创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @TableField(value = "created_time")
    private Date createdTime;
    /**
     * 返回审核结果
     */
    @TableField(value = "feedback")
    private String feedback;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
